package com.eva.dao.cms.model;

import com.eva.framework.mp.model.BaseModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import lombok.experimental.SuperBuilder;

@Data
@Accessors(chain = true)
@SuperBuilder
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@ApiModel("资源")
@TableName("`cms_resource`")
public class CmsResource extends BaseModel {

    @TableField("`group_id`")
    @ApiModelProperty(value="所属组ID")
    private Integer groupId;

    @TableField("`title`")
    @ApiModelProperty(value="资源标题")
    private String title;

    @TableField("`sub_title`")
    @ApiModelProperty(value="资源副标题")
    private String subTitle;

    @TableField("`description`")
    @ApiModelProperty(value="资源描述")
    private String description;

    @TableField("`value`")
    @ApiModelProperty(value="资源值")
    private String value;

    @TableField("`value_type`")
    @ApiModelProperty(value="资源值类型")
    private String valueType;

    @TableField("`sort`")
    @ApiModelProperty(value="排序")
    private Integer sort;

    @TableField("`config`")
    @ApiModelProperty(value="资源配置")
    private String config;

    @TableField("`disabled`")
    @ApiModelProperty(value="是否已禁用")
    private Boolean disabled;

}
